package builderPattern;

//建造者实现类--平房建造者
public class BungalowBuilder implements Builder {

    private House house=new House();

    @Override
    public void buildWall() {
        house.setWall("bungalow wall");
    }

    @Override
    public void buildRoof() {
        house.setRoof("bungalow roof");
    }

    @Override
    public void buildFloor() {
        house.setFloor("bungalow floor");
    }

    @Override
    public House getHouse() {
        return house;
    }
}
